package com.example.studentregistration.service;

import com.example.studentregistration.pojo.Reporting;
import com.example.studentregistration.util.Result;
import com.github.pagehelper.Page;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface ReportingService {
    Result<?> insertReporting(Reporting reporting);//报到
    Result<?> updateReporting(Reporting reporting);//修改
    Result<?> deleteReporting(Long id);//删除
    Page<Reporting> queryReportingPage(Integer currentPage, Integer pageSize,//查询
                                       String status, String name,
                                       String studentNo, String className,
                                       String buildingName, Integer isPaid);
    Result<Reporting> queryReportingById(Long id);//查询

    List<Reporting> queryAllReporting();//查询所有
    void exportReportingExcel(HttpServletResponse response) throws IOException;//导出
}